class OsseanMonitorsController < ApplicationController
  def show
    @ossean_monitors = OsseanMonitor.all
    
    monitors = Array.new
    @ossean_monitors.each do |item| 
      if (item.day_crawler == 0 && item.week_crawler == 0) || (item.day_extractor == 0 && item.week_extractor == 0)
        monitors.append(item)
      else
        monitors.insert(0, item)
      end
    end
    
    @ossean_monitors = monitors
    
    respond_to do |format|
      format.html
    end
  end
end
